Xbasic

OBJECT.INDEX_SETEXPLICIT Function

Syntax

.Index_setexplicit(c index_name )

Arguments

index_name

The tag name of an index.

Description

Sets the primary index or query.

Discussion

The <OBJECT>.INDEX_SETEXPLICIT() method applies to:

Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.INDEX_SETEXPLICIT() method sets the primary index for the layout. It displays error message if Index_Name is not found.

Example

dim ptr as P
ptr = form.load("Customer Information")
ptr.Index_SetExplicit("Lastname1")
? ptr.Index_Name()
= "Lastname1"
ptr.Index_SetExplicit("Lastname2")
? ptr.Index_Name()
= "Lastname2"

Limitations

Desktop applications only.

See Also